#@datagrid()
#define head_foot()
<style type="text/css">.table-property {margin-top:10px; margin-bottom:10px}.table-property th { text-align:right; font-weight: normal;}.table-property td{color:#999}</style>
#end
#define content_header()
<h1>    
    <a href="/agency">代理会员管理</a>
    <small>agency tables</small>
</h1>
<ol class="breadcrumb">
    <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
    <li><a href="/agency/">代理</a></li>
    <li class="active">代理会员管理</li>
</ol>
#end
#define content()
<div class="box">
    <div class="box-header">
        
        <!-- 个人信息 -->
        #include("_agencyinfopart.html")
		
	<!-- 选项卡 -->
        #set(tabid="tabchildagent1")
        #include("_subpage_navtabs.html")
        <!-- search -->
        #set(formaction="childagent1")
        #include("_searchform.html")
    </div>
    <!-- /.box-header -->
    <div class="box-body">
        <table class="xsui-datagrid table table-condensed table-bordered table-striped table-hover">
            <thead>
                <tr>
                    <th>代理ID</th>
                    <th>会员名</th>
                    <th>账户余额</th>
                    <th>今日收入总额</th>
                    <th>累计收入金额</th>
                    <th>今日提现金额</th>
                    <th>累计提现金额</th>
                    <th>今日充值金额</th>
                    <th>累计充值金额</th>
                    <th>今日消费金额</th>
                    <th>累计消费金额</th>
                    <th>下级代理数量</th>
                    <th>顶级代理</th>
                </tr>
            </thead>
            <tbody>
                #for(x : listPage.getList())
                <tr data-key="#(x.user_id)">
                    <td>#(x.user_id)</td>
                    <td>#(x.nickname)</td>
                    <td>#(x.blance)</td>
                    <td><!-- 今日收入总额 -->
                    		#(x.income_amount_today)
                    </td>
                    <td><!-- 累计收入金额 -->
                    		#(x.income_amount_total)
                    </td>
                    <td><!-- 今日提现金额 -->
                    		#(x.withdraw_amount_today)
                    </td>
                    <td><!-- 累计提现金额 -->
                    		#(x.withdraw_amount_total)
                    </td>
                    <td><!-- 今日充值金额 -->
                    		#(x.recharge_amount_today)
                    </td>
                    <td><!-- 累计充值金额 -->
                    		#(x.recharge_amount_total)
                    </td>
                    <td>0</td>
                    <td>0</td>
                    <td>
						#(x.child1_agent_count)
                    </td>
                    <td>#(x.top_agent_id)</td>
                
                </tr>
                #end
            </tbody>
        </table>
        <!--分页条-->
        
        #include("_pagination.html")
    </div>
    <!-- /.box-body -->
</div>
<!-- /.box -->
#end
#define body_foot()
<!-- lightbox2 -->
<script src="/skin/ui/plugins/lightboxlib/lightbox2/js/lightbox.min.js"></script>
#end